<admintpl file="header" />
<style>
	*{margin:0; padding:0;}
	body{font-family: "Microsoft Yahei", "hiragino sans gb", Helvetica, Arial, Tahoma;}
	.shdo{position: fixed; left:0; top:0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10; display: none;}
	.stan-box{padding:10px 20px; width: 400px; max-height: 500px; background: #fff; position: fixed; left:100px; top:100px; z-index: 11; display: none;}
	.simgBox{max-height: 440px; overflow: auto; text-align: center;}
	.simgBox img{}
	.stit{height: 30px;}
	.stit .yuan{font-size: 14px;}
	.stit .cuo{display: block; width: 20px; height: 20px; color: #fff; background: #007aff; line-height: 20px; text-align: center; position: absolute; right:0; top:0; cursor: pointer;}
	.sbot{height: 30px; }
	.sbot span{height: 26px; line-height: 26px; width: 50px; font-size: 12px; color: #fff;  background: #007aff;  float: right; text-align: center; border-radius: 2px;margin-top: 6px; cursor: pointer;}
	.tanimg{cursor:pointer;}
</style>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a>提现记录</a></li>
	</ul>
	<form class="well form-search" method="post" id="forms" action="{:U('Order/tx_record')}">
	申请人：
					<input type="text" name="accounts" id="accounts" style="width: 150px;height:15px;" value="{:I('request.accounts')}" placeholder="请输入申请人">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	申请时间：
					<input type="text" class="js-date" name="start_time" id="start_time" value="{:I('request.start_time')}" style="width: 120px;height:15px;" autocomplete="off">&nbsp;&nbsp;至
					<input type="text" class="js-date" name="end_time" id="end_time" value="{:I('request.end_time')}" style="width: 120px;height:15px;" autocomplete="off">&nbsp;&nbsp;
					<input type="button" class="btn btn-primary" value="搜索" onclick="sea()" />
					<a class="btn btn-danger" href="{:U('Order/tx_record')}">清空</a>
	</form>
	<form method="post" class="js-ajax-form">
		<table class="table table-hover table-bordered">
			<thead>
			<tr>
				<th style="text-align: center">会员账号</th>
				<th style="text-align: center">发起时间</th>
				<th style="text-align: center">申请人</th>
				<th style="text-align: center">申请金额(元)</th>
				<th style="text-align: center">银行卡号</th>
				<th style="text-align: center">开户行</th>
				<th style="text-align: center">开户城市</th>
				<th style="text-align: center">开户人姓名</th>
				<th style="text-align: center">是否处理</th>
				<th style="text-align: center">处理时间</th>
				<th style="text-align: center">操作</th>
			</tr>
			</thead>
			<tbody>

			<foreach name="res" item="vo">

				<tr>
					<td style="text-align: center"><a href="{:U('Report/shuju_tz',array('id'=>$vo['uid']))}">{$vo.accounts}</a></td>
					<td style="text-align: center">{$vo.ctime|date="Y-m-d H:i:s",###}</td>
					<td style="text-align: center">{$vo.nickname}</td>
					<td style="text-align: center">{$vo.money}</td>
					<td style="text-align: center">{$vo.card}</td>
					<td style="text-align: center">
						<?php if($vo["bankid"]=='1'){echo "工商银行";}
									        elseif($vo["bankid"]=='2'){echo "建设银行";}
                                            elseif($vo["bankid"]=='3'){echo "农业银行";}
                                            elseif($vo["bankid"]=='4'){echo "民生银行";}
                                            elseif($vo["bankid"]=='5'){echo "招商银行";}
                                            elseif($vo["bankid"]=='6'){echo "交通银行";}
                                            elseif($vo["bankid"]=='7'){echo "中国银行";}
                                            elseif($vo["bankid"]=='8'){echo "邮政储蓄";}
                                            elseif($vo["bankid"]=='9'){echo "中信银行";}
                                            elseif($vo["bankid"]=='10'){echo "兴业银行";}
                                            elseif($vo["bankid"]=='11'){echo "华夏银行";}
                                            elseif($vo["bankid"]=='12'){echo "浦发银行";}
                                            elseif($vo["bankid"]=='13'){echo "广发银行";}
                                            elseif($vo["bankid"]=='14'){echo "平安银行";}
                                            elseif($vo["bankid"]=='15'){echo "光大银行";}
                                            elseif($vo["bankid"]=='16'){echo "农商银行";};?>

					</td>
					<td style="text-align: center"><?php echo $gi[$vo['province']]['name'].$gi[$vo['city']]['name'];?></td>
					<td style="text-align: center">{$vo.uname}</td>
					<td style="text-align: center">
						<if condition="$vo.is_ti eq 1">已提现
						 <elseif condition="$vo.is_ti eq 2"/>已驳回
						<else /> 未处理
							<object height="1" width="1" data="/style/yinyue/7499.mp3"></object>
						 </if>
					</td>
					<td style="text-align: center">
						<if condition="$vo.is_ti eq 1">{$vo.ti_time|date="Y-m-d H:i:s",###}
						 <elseif condition="$vo.is_ti eq 2"/>{$vo.ti_time|date="Y-m-d H:i:s",###}
						<else /> 未处理
						 </if>
					</td>
					<td style="text-align: center">
						<if condition="($vo.is_ti eq 1) OR ($vo.is_ti eq 2) ">已处理
						 <else /> <a href="{:U('Order/tix',array('id'=>$vo['id'],'p'=>$p))}">提现</a> | <a href="{:U('Order/juj',array('id'=>$vo['id'],'p'=>$p))}">驳回</a>
						 </if>
					</td>
				</tr>
			</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</form>
<script src="__PUBLIC__/js/common.js"></script>
<script>
	$(".tanimg").click(function(){
		$("#showImg").attr("src",$(this).attr("src"));
		$(".stan-box").css({"left":($(window).width()-$(".stan-box").outerWidth())/2,"top":($(window).height()-$(".stan-box").outerHeight())/2});
		$(".shdo").show();
		$(".stan-box").show();
	})
	$(".sbot,.cuo").click(function(){
		$(".shdo").hide();
		$(".stan-box").hide();
	})
function sea(){
    var accounts = $("#accounts").val().replace(/(^\s+)|(\s+$)/g,"");

    var time1 = $("#start_time").val();
    var time2 = $("#end_time").val();
    
    date1=new Date(time1);
    date2=new Date(time2);
    if(time1!="" && time2!=""){
        if(Date.parse(date1)==Date.parse(date2)){
        	
        }else if(Date.parse(date1)<Date.parse(date2)){

        }else{
            alert("时间不正确!");
            return false;
        }
    }
    $("#forms").submit();
}
</script>
	</div>
</body>
</html>
<script>
	$(function(){
		setInterval(function(){
			location.href=location.href;
		},5000)
	})
</script>